<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:useBean id="fileBean" scope="page" class="zhcms.tool.UploadBean" />
<%
String TureObjectPath="/data/webapps/online/WebRoot/upload/";
String VirtualObjectPath="/upload/";
fileBean.setObjectPath(TureObjectPath);
fileBean.setSize(10000*1024);
fileBean.setSuffix(".gif.jpg.png.jpge.html.htm.rar.zip");
fileBean.setSourceFile(request);
String [] saSourceFile = fileBean.getSourceFile();
String [] saObjectFile = fileBean.getObjectFileName();
String [] saDescription = fileBean.getDescription();
int iCount = fileBean.getCount();
String sObjectPath = fileBean.getObjectPath();
//out.println("<br>源始文件:");
//out.println(saSourceFile[0]);
//out.println("<br>目标文件:");
//out.println(sObjectPath+saObjectFile[0]);
//out.println("<br>上传说明:");
//out.println(saDescription[0]);
out.println("<script>parent.document.a1.img.value='" + VirtualObjectPath + saObjectFile[0] + "'</script>");
//out.println("parent.document.a1.img.value='" + VirtualObjectPath + saObjectFile[0] + "'");
%> 